﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Driver;

namespace WpfMongoDB.Model
{
    public class StaticCs
    {
        static StaticCs()
        {
            Servers = new Dictionary<string, MongoServer>();
        }
        /// <summary>
        /// mongodb服务器列表
        /// </summary>
        public static Dictionary<string, MongoServer> Servers{get;private set;}


        /// <summary>
        /// JsonWriterSettings
        /// </summary>
        public static MongoDB.Bson.IO.JsonWriterSettings JsonWriterSettings = new MongoDB.Bson.IO.JsonWriterSettings()
        {
            Indent = true,
            NewLineChars = System.Environment.NewLine,
            OutputMode = MongoDB.Bson.IO.JsonOutputMode.Strict
        };

    }
}
